package com.zc.angelica.controller;


import com.zc.angelica.entity.ResponseData;
import com.zc.angelica.service.AccountPlatformInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;


/**
 * 账户平台关系表(AccountPlatformInfo)表控制层
 *
 * @author makejava
 * @since 2022-04-10 18:33:08
 */
@RestController
@RequestMapping("/accountPlatformInfo")
public class AccountPlatformInfoController {
    /**
     * 服务对象
     */
    @Autowired
    private AccountPlatformInfoService accountPlatformInfoService;


    @GetMapping("/bindingPlatform")
    public ResponseData bindingPlatform(String platformCode) {
        return accountPlatformInfoService.bindingPlatform(platformCode);
    }


    @GetMapping("/unbindingPlatform")
    public ResponseData unbindingPlatform(Long id) {
        return accountPlatformInfoService.unbindingPlatform(id);
    }


    @GetMapping("/selectAllPlatform")
    public ResponseData selectAllPlatform() {
        return ResponseData.success(accountPlatformInfoService.selectAllPlatform());
    }


}

